package com.atguigu.tingshu.search.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.search.client.SearchFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SearchDegradeFeignClient implements SearchFeignClient {
    /**
     * @description: 用于[service.service-album]/com/atguigu/tingshu/album/canal/CanalClientListener.java
     *               的远程调用,更新统计数据
     * @author Petrichor
     * @date 2024/1/5 19:26
     * @param albumId 专辑id
     * @param statType 统计类型：0401-播放量 0402-订阅量 0403-购买量 0403-评论数
     * @param statNum 统计数目
     * @return NULL
     **/

    @Override
    public Result updateAlbumStat(Long albumId, String statType, Integer statNum) {
        log.info("更新统计数据...SearchDegradeFeignClient..updateAlbumStat..降级类");
        return null;
    }
    /**
     * @description: 更新排行榜数据
     * @author Petrichor
     * @date 2024/1/2 16:46
     **/
    @Override
    public Result updateLatelyAlbumRanking() {
        log.info("更新排行榜数据...SearchDegradeFeignClient..updateLatelyAlbumRanking..降级类");

        return null;
    }
}
